﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LeanEngine.Entity
{
    /// <summary>
    /// Interface for tracking of changes in objects.
    /// </summary>
    public interface IChangeTrack
    {
        #region Method Members

        /// <summary>
        /// Sets the current state of the collection as its initial state.
        /// </summary>
        void SaveState();

        #endregion

        #region PropertyInfo Members

        /// <summary>
        /// Gets a flag indicating whether there were changes in the properties.
        /// </summary>
        bool HasChanges
        {
            get;
        }

        /// <summary>
        /// Gets or sets the number version of the current data.
        /// </summary>
        int DataVersion
        {
            get;
            set;
        }

        #endregion
    }
}
